package com.example.jucdemo.waitnotify.dmeo1;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author by KoVaVo
 * @Date 2023-05-20 18:40
 * @Desc:
 */
public class Code_01_MyList {

    volatile private List list = new ArrayList();

    public void add(){
        list.add("anyString");
    }

    public int size(){
        return list.size();
    }
}
